<div class="causes index">
	<h2><?php __('Causas');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
                        <th><?php echo $this->Paginator->sort('Departamento Policial','police_stations_id');?></th>
                        <th><?php echo $this->Paginator->sort('Jurisdiccion','jurisdictions_id');?></th>
                        <th><?php echo $this->Paginator->sort('Circunscripcion','placements_id');?></th>
                        <th><?php echo $this->Paginator->sort('Fuero','charters_id');?></th>
                        <th><?php echo $this->Paginator->sort('Juzgado','courts_id');?></th>
			<th><?php echo $this->Paginator->sort('Secretaria','secretaries_id');?></th>
                        <th><?php echo $this->Paginator->sort('Descripcion','descripcion');?></th>
			<th><?php echo $this->Paginator->sort('Número de Causa','nro_causa');?></th>
			<th class="actions"><?php __('Acciones');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($causes as $cause):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		
		<td>
			<?php echo $this->Html->link($cause['PoliceStations']['descripcion'], array('controller' => 'police_stations', 'action' => 'view', $cause['PoliceStations']['id'])); ?>
		</td>
                <td>    
			<?php echo $this->Html->link($jurisdictions['0']['Jurisdiction']['descripcion'], array('controller' => 'courts', 'action' => 'view', $jurisdictions['0']['Jurisdiction']['id'])); ?>
		</td>                
                <td>    
			<?php echo $this->Html->link($placements['0']['Placement']['descripcion'], array('controller' => 'courts', 'action' => 'view', $placements['0']['Placement']['id'])); ?>
		</td>
                  <td>    
			<?php echo $this->Html->link($charters['0']['Charter']['descripcion'], array('controller' => 'courts', 'action' => 'view', $charters['0']['Charter']['id'])); ?>
		</td>
                <td>    
			<?php echo $this->Html->link($courts['0']['Courts']['descripcion'], array('controller' => 'courts', 'action' => 'view', $courts['0']['Courts']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($cause['Secretaries']['descripcion'], array('controller' => 'secretaries', 'action' => 'view', $cause['Secretaries']['id'])); ?>
		</td>
		<td>
			<?php echo $cause['Cause']['descripcion']; ?>
		</td>                
		<td><?php echo $cause['Cause']['nro_causa']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Ver', true), array('action' => 'view', $cause['Cause']['id'])); ?>
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $cause['Cause']['id'])); ?>
			<?php echo $this->Html->link(__('Borrar', true), array('action' => 'delete', $cause['Cause']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $cause['Cause']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Pagina %page% de %pages%, mostrando %current% registros de un total de %count%, comienza en %start%, termina en %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>